import Vue from 'vue'
import Router from 'vue-router'

import Main from '@page/Main'
import Order from '@page/order/Index'
import Charge from '@page/charge/Index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/admin',
      component: Main,
      children: [
        {
          path: '/admin/order',
          component: Order
        }, {
          path: '/admin/charge',
          component: Charge
        }
      ]
    }
    // {
    //   path: '/',
    //   component: Index
    // }, {
    //   path: '/content/:id',
    //   component: Content
    // }
  ]
})
